﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Reflection;
using System.Collections;
using System.Web.UI.WebControls;

namespace Infrastructure.Attributes
{
    /// <summary>
    /// 标记字段的显示名称的特性  
    /// </summary>
    [AttributeUsage(AttributeTargets.Field)]
    public class EnumDisplayAttribute : Attribute
    {
        /// <summary>
        /// 显示名称
        /// </summary>
        public string DisplayName { get; private set; }

        /// <summary>
        /// 标记字段的显示名称
        /// </summary>
        /// <param name="displayName">显示名称</param>
        public EnumDisplayAttribute(string displayName)
        {
            this.DisplayName = displayName;
        }
    }
}
